package cn.gov.pbc.gd.credit.user.service.dept.impl;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Service;

import com.liu.jbase.ResultVo;
import com.liu.jbase.annotation.LogAnnotation;
import com.liu.jbase.service.impl.BaseServiceImpl;

import cn.gov.pbc.gd.credit.api.dept.IDeptApi;
import cn.gov.pbc.gd.credit.common.constant.LogConstant;
import cn.gov.pbc.gd.credit.user.service.dept.IDeptService;
import cn.gov.pbc.gd.credit.vo.dept.DeptVo;
import cn.gov.pbc.gd.credit.vo.dept.ResDeptVo;

@Service
public class DeptServiceImpl extends BaseServiceImpl<ResDeptVo, DeptVo, IDeptApi> implements IDeptService{

	@LogAnnotation(moduleName=LogConstant.MODULE_DEPT, option=LogConstant.ADD, logType=LogConstant.LOG_OPERATE, content="添加部门")
	@Override
	public ResultVo<ResDeptVo> add(DeptVo record, HttpServletRequest request) {
		// TODO Auto-generated method stub
		return super.add(record, request);
	}
	
	@LogAnnotation(moduleName=LogConstant.MODULE_DEPT, option=LogConstant.UPDATE, logType=LogConstant.LOG_OPERATE, content="修改部门")
	@Override
	public ResultVo<ResDeptVo> update(DeptVo record, HttpServletRequest request) {
		// TODO Auto-generated method stub
		return super.update(record, request);
	}
	@LogAnnotation(moduleName=LogConstant.MODULE_DEPT, option=LogConstant.DEL, logType=LogConstant.LOG_OPERATE, content="删除部门")
	@Override
	public ResultVo<ResDeptVo> delete(DeptVo record, HttpServletRequest request) {
		// TODO Auto-generated method stub
		return super.delete(record, request);
	}
	
}
